package com.seven.commons;

/**
 * @author sevenDay
 * @classname ParamterException
 * @description: 描述TODO
 * @date 2018/2/23
 */
public class AnnotationException extends AbstractSevenException {
    private Integer code;
    public AnnotationException(AnnotationEnum resultEnum) {
        super(resultEnum.getMsg(),resultEnum.getCode());
        this.code = resultEnum.getCode();
    }
    public AnnotationException(int code  ,String msg) {
        super(msg,code);
        this.code = code;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public void setCode(Integer code) {
        this.code = code;
    }


    @Override
    public  void setMsg(String msg){super.setMsg(msg);};
}
